import request from "@/api/index"

export default {
    //添加
    add(params) {
        return request.post("/health/ncPreventionManagement/add", {
            ...params
        })
    }, 
    //编辑
    edit(params) {
        return request.post("/health/ncPreventionManagement/edit", {
            ...params
        })
    },
    //批量删除
    delListById(idList) {
        return request.get("/health/ncPreventionManagement/delListById", { idList })
    },
    //条件查询
    queryByCondition(params) {
        return request.post("/health/ncPreventionManagement/queryByCondition", {
            ...params
        })
    },
    //分页查询
    queryPageByCondition(params) {
        return request.post("/health/ncPreventionManagement/queryPageByCondition", {
            ...params
        })
    },
    //用药详情
    diseaseRecordsDetail(params) {
        return request.post("/health/ncPreventionManagementDetail/queryByCondition", {
            ...params
        })
    },
    //用药详情删除
    detailDel(id){
        return request.get("/health/ncPreventionManagementDetail/delById", { id })
    }
}
